
<select name="kat" size="1"> 
<?php

$dir = opendir ("themes");
while ($ordner = readdir($dir)) {
     if (is_dir("themes/" . $ordner) && $ordner != "." && $ordner != "..") {
 echo "<option value='$ordner'>$ordner</option>";     
}}
closedir($dir);
?>
</select>